package com.gr.dmbackend.controller.dormaddmin;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.dormaddmin.GetStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetStudentController {

    @Autowired
    private GetStudentService getStudentService;

    @GetMapping("/api/dormaddmin/get-student")
    public JSONObject getStudent(int page) {
        return getStudentService.getStudent(page);
    }

}
